<?php

class auditorias_cf extends Config
{
    public function __construct() {
        parent::__construct('');
        $this-> setConfig();
    }
    
    public function setConfig(){
        $menu = array();
        if(Session::get('access')){
            if(Session::accessViewStrict(array('Lider'))){
                $menu[] = array(
                    'id' => 'auditor',
                    'titulo' => 'Auditores',
                    'enlace' => BASE_URL . 'auditorias/auditor'
                );
                $menu[] = array(
                    'id' => 'checklist',
                    'titulo' => 'Preguntas',
                    'enlace' => BASE_URL . 'auditorias/checklist'
                );
            }
            $menu[] = array(
                'id' => 'agenda',
                'titulo' => 'Agenda',
                'enlace' => BASE_URL . 'auditorias/programa'
            );
            $menu[] = array(
                'id' => 'login',
                'titulo' => 'Cerrar session',
                'enlace' => BASE_URL . 'login/index/cerrar'
            );
        }else{
            $menu[] = array(
                'id' => 'login',
                'titulo' => 'Iniciar session',
                'enlace' => BASE_URL . 'login/index'
            );
        }
        $this->config['menu'] = $menu;
        
        $this->config['app']['name'] = 'SISTEMA DE CONTROL DE AUDITORIAS';
    }

}
?>